package edu.pku.sei.act.actools.util;

public class AbilityOutput {
	String providerID;
	String receiverID;
	String abilityName;
	String output;
	
	public String toString() {
		return ACToolsNamingSpace.EnvInfo.ABILITY_OUTPUT + "," + providerID + "," + receiverID + "," + abilityName + "," + output;
	}
	
	public AbilityOutput() {
		providerID = "null";
		receiverID = "null";
		abilityName = "null";
		output = "null";
	}

	public AbilityOutput(String providerID, String receiverID, String abilityName, String output) {
		super();
		this.providerID = providerID;
		this.receiverID = receiverID;
		this.abilityName = abilityName;
		this.output = output;
	}
	
	public AbilityOutput(String envInfo) {
		String[] ss = envInfo.split(",");
		providerID = ss[1];
		receiverID = ss[2];
		abilityName = ss[3];
		output = ss[4];
	}

	public String getProviderID() {
		return providerID;
	}

	public void setProviderID(String providerID) {
		this.providerID = providerID;
	}

	public String getReceiverID() {
		return receiverID;
	}
	
	public void setReceiverID(String receiverID) {
		this.receiverID = receiverID;
	}
	
	public String getAbilityName() {
		return abilityName;
	}

	public void setAbilityName(String abilityName) {
		this.abilityName = abilityName;
	}

	public String getOutput() {
		return output;
	}

	public void setOutput(String output) {
		this.output = output;
	}
	
}
